package com.bw.kylin1705f.web;


import com.bw.kylin1705f.vo.ResultEntity;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @CrossOrigin(origins = {"*"})
    @RequestMapping(value = "/login_p")
    @ResponseStatus(value = HttpStatus.UNAUTHORIZED)
    public ResultEntity loginP(){
        return ResultEntity.error("尚未登录");
    }
}
